// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.core.znet;

import zombie.core.textures.Texture;

public class SteamFriend {
    private String name = "";
    private long steamID;
    private String steamIDString;

    public SteamFriend() {
    }

    public SteamFriend(String _name, long _steamID) {
        this.steamID = _steamID;
        this.steamIDString = SteamUtils.convertSteamIDToString(_steamID);
        this.name = _name;
    }

    public String getName() {
        return this.name;
    }

    public String getSteamID() {
        return this.steamIDString;
    }

    public Texture getAvatar() {
        return Texture.getSteamAvatar(this.steamID);
    }

    public String getState() {
        int _int = SteamFriends.GetFriendPersonaState(this.steamID);
        switch (_int) {
            case 0:
                return "Offline";
            case 1:
                return "Online";
            case 2:
                return "Busy";
            case 3:
                return "Away";
            case 4:
                return "Snooze";
            case 5:
                return "LookingToTrade";
            case 6:
                return "LookingToPlay";
            default:
                return "Unknown";
        }
    }
}
